mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 21:42:13 +00:00
18 lines
370 B
C++
18 lines
370 B
C++
#include "actiontrap.hpp"
|
|
|
|
#include "../mwmechanics/spellcasting.hpp"
|
|
|
|
namespace MWWorld
|
|
{
|
|
|
|
void ActionTrap::executeImp(const Ptr &actor)
|
|
{
|
|
MWMechanics::CastSpell cast(mTrapSource, actor);
|
|
cast.mHitPosition = Ogre::Vector3(actor.getRefData().getPosition().pos);
|
|
cast.cast(mSpellId);
|
|
|
|
mTrapSource.getCellRef().mTrap = "";
|
|
}
|
|
|
|
}
|