bool IsPureNukeSpell(uint16 spell_id) { int i, effect_count = 0; if (!IsValidSpell(spell_id)) return false; for (i = 0; i < EFFECT_COUNT; i++) if (!IsBlankSpellEffect(spell_id, i)) effect_count++; if (effect_count == 1 && IsEffectInSpell(spell_id, SE_CurrentHP) && spells[spell_id].buffduration == 0 && IsDamageSpell(spell_id)) return true; return false; }
bool IsPureNukeSpell(int16 spell_id) { int i, effect_count = 0; if(!IsValidSpell(spell_id)) return false; for(i = 0; i < EFFECT_COUNT; i++) { if(!IsBlankSpellEffect(spell_id, i)) effect_count++; } return ( spells[spell_id].effectid[0] == SE_CurrentHP && effect_count == 1 ); }