mirror of
https://github.com/mangosfour/server.git
synced 2025-12-29 07:37:05 +00:00
[c12571] Allow spell effect 77 (ScriptEffect) and aura 226 (PeriodicDummy) to be handled by script library
This commit is contained in:
parent
c9aa7b5d3a
commit
dcc087a360
5 changed files with 22 additions and 1 deletions
|
|
@ -8468,6 +8468,12 @@ void Aura::PeriodicDummyTick()
|
|||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (Unit* caster = GetCaster())
|
||||
{
|
||||
if (target && target->GetTypeId() == TYPEID_UNIT)
|
||||
sScriptMgr.OnEffectDummy(caster, GetId(), GetEffIndex(), (Creature*)target);
|
||||
}
|
||||
}
|
||||
|
||||
void Aura::HandlePreventFleeing(bool apply, bool Real)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue