mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-10-04 18:41:45 -04:00
17 lines
289 B
C++
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 = "";
|
|
}
|
|
|
|
}
|