Skip to content

Commit

Permalink
SpellsLvl09: Merge conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
bsxf-47 committed Feb 5, 2017
1 parent 6101d43 commit 65d0570
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/game/magic/spells/SpellsLvl09.cpp
Expand Up @@ -417,15 +417,7 @@ void NegateMagicSpell::LaunchAntiMagicField() {
for(size_t i = 0; i < MAX_SPELLS; i++) {
SpellBase * spell = spells[SpellHandle(i)];

if(!spell) {
continue;
}

if(this == spell) {
continue;
}

if(m_level < spell->m_level) {
if( !spell || this == spell || m_level < spell->m_level) {
continue;
}

Expand Down

0 comments on commit 65d0570

Please sign in to comment.