Fixed ability recognition or whatever

This commit is contained in:
Aragas 2016-09-14 13:34:30 +03:00
parent 23ab1afe82
commit e278150cc0
1 changed files with 1 additions and 1 deletions

View File

@ -1857,7 +1857,7 @@ EndSleepCheck:
GainHP(CInt(AllDamage / 8), own, own, BattleScreen, p.GetDisplayName() & " gains some HP due to the Shell Bell.", "shellbell")
End If
Case "life orb"
If p.Ability.ToLower <> "magic guard" Then
If p.Ability.Name.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