mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 19:37:02 +00:00
Updated to use the latest version of ScriptDev3
Updated to use the latest version of ScriptDev3
This commit is contained in:
parent
59e280ec81
commit
0303b1672d
3 changed files with 9 additions and 1 deletions
|
|
@ -918,6 +918,8 @@ bool IsPositiveEffect(SpellEntry const* spellproto, SpellEffectIndex effIndex)
|
||||||
return false;
|
return false;
|
||||||
break;
|
break;
|
||||||
case SPELL_AURA_MOD_DECREASE_SPEED: // used in positive spells also
|
case SPELL_AURA_MOD_DECREASE_SPEED: // used in positive spells also
|
||||||
|
if (spellproto->Id == 37830) // Repolarized Magneto Sphere
|
||||||
|
return true;
|
||||||
// part of positive spell if casted at self
|
// part of positive spell if casted at self
|
||||||
if ((spellEffect->EffectImplicitTargetA == TARGET_SELF ||
|
if ((spellEffect->EffectImplicitTargetA == TARGET_SELF ||
|
||||||
spellEffect->EffectImplicitTargetA == TARGET_SELF2) &&
|
spellEffect->EffectImplicitTargetA == TARGET_SELF2) &&
|
||||||
|
|
|
||||||
|
|
@ -397,6 +397,12 @@ void Spell::EffectSchoolDMG(SpellEffectEntry const* effect)
|
||||||
damage = damage * unitTarget->GetMaxHealth() / 100;
|
damage = damage * unitTarget->GetMaxHealth() / 100;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
// Lightning Strike
|
||||||
|
case 37841:
|
||||||
|
if (unitTarget->GetTypeId() == TYPEID_PLAYER && unitTarget->HasAura(37830)) // Repolarized Magneto Sphere
|
||||||
|
((Player*)unitTarget)->KilledMonsterCredit(21910);
|
||||||
|
break;
|
||||||
|
// Cataclysmic Bolt
|
||||||
// Cataclysmic Bolt
|
// Cataclysmic Bolt
|
||||||
case 38441:
|
case 38441:
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit eb0771b1ebde547a7f3823e607f76de8668b1ef0
|
Subproject commit 58a3270fb26f4a8c66bd6434a2b955b3b3e79e0b
|
||||||
Loading…
Add table
Add a link
Reference in a new issue