mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 10:31:29 +00:00
Change spell logic to use min_hp from spell list.
This commit is contained in:
parent
5c4ed0becf
commit
e582a8d17a
@ -197,7 +197,10 @@ bool NPC::AICastSpell(Mob* tar, uint8 iChance, uint32 iSpellTypes, bool bInnates
|
||||
}
|
||||
|
||||
case SpellType_Escape: {
|
||||
if (GetHPRatio() <= 5 )
|
||||
// If min_hp !=0 then the spell list has specified
|
||||
// custom range and we're inside that range if we
|
||||
// made it here. The hard coded <=5 is for unspecified.
|
||||
if (AIspells[i].min_hp != 0 || GetHPRatio() <= 5)
|
||||
{
|
||||
AIDoSpellCast(i, tar, mana_cost);
|
||||
return true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user