Fixed LifeOrb and MagicGuard interaction

Magic Guard users are now not affected by recoil
This commit is contained in:
Capt_Segis 2016-09-14 02:43:44 -05:00 committed by GitHub
parent 55d550e4e6
commit 472b92e6fb
1 changed files with 3 additions and 1 deletions

View File

@ -1857,7 +1857,9 @@ EndSleepCheck:
GainHP(CInt(AllDamage / 8), own, own, BattleScreen, p.GetDisplayName() & " gains some HP due to the Shell Bell.", "shellbell")
End If
Case "life orb"
ReduceHP(CInt(p.MaxHP / 10), own, own, BattleScreen, p.GetDisplayName() & " loses HP due to Life Orb.", "lifeorb")
If p.Ability.ToLower <> "magic guard" Then
ReduceHP(CInt(p.MaxHP / 10), own, own, BattleScreen, p.GetDisplayName() & " loses HP due to Life Orb.", "lifeorb")
End If
End Select
End If
End If