Exemplo n.º 1
0
 void OnPeriodic(constAuraEffectPtr /*aurEff*/)
 {
     if (DynamicObject* owner = GetDynobjOwner())
         if (GetTarget()->GetExactDist2d(owner) >= owner->GetRadius() || GetTarget()->HasAura(SPELL_IMPALED) || (GetTarget()->GetTypeId() == TYPEID_PLAYER && GetTarget()->ToPlayer()->HasSpellCooldown(69146)))
             PreventDefaultAction();
         else if (GetTarget()->GetTypeId() == TYPEID_PLAYER)
             GetTarget()->ToPlayer()->AddSpellCooldown(69146, NULL, time(NULL) + 1.1);
 }
Exemplo n.º 2
0
 void OnPeriodic(AuraEffect const* /*aurEff*/)
 {
     if (DynamicObject* owner = GetDynobjOwner())
         if (GetTarget()->GetExactDist2d(owner) >= owner->GetRadius() || GetTarget()->HasAura(SPELL_IMPALED))
             PreventDefaultAction();
 }
Exemplo n.º 3
0
void SpellColdflameDamageAuraScript::OnPeriodic(AuraEffect const* /*aurEff*/)
{
    if (DynamicObject* owner = GetDynobjOwner())
        if (GetTarget()->GetExactDist2d(owner) >= owner->GetRadius() || GetTarget()->HasAura(SPELL_IMPALED) || HasCooldown(GetTarget()))
            PreventDefaultAction();
}