1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 06:39:49 +00:00
OpenMW/apps/openmw/mwworld/actiontrap.cpp

17 lines
289 B
C++

#include "actiontrap.hpp"
#include "../mwmechanics/spellcasting.hpp"
namespace MWWorld
{
void ActionTrap::executeImp(const Ptr &actor)
{
MWMechanics::CastSpell cast(mTrapSource, actor);
cast.cast(mSpellId);
mTrapSource.getCellRef().mTrap = "";
}
}