mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-02 20:56:37 +00:00
Fixed Merc spell recast timers, changed how Mercs add mobs to their hate lists (should prevent IsEngaged() issues), initial Caster DPS Merc spell casting AI, initial Merc stance implementation, Mercs now suspend when their owner dies to prevent them being bugged (until it can be fixed), added 2 seconds between spell casts to be live-like.
This commit is contained in:
@@ -352,6 +352,22 @@ bool IsPureNukeSpell(uint16 spell_id)
|
||||
);
|
||||
}
|
||||
|
||||
bool IsAENukeSpell(uint16 spell_id)
|
||||
{
|
||||
return IsValidSpell(spell_id) && IsPureNukeSpell(spell_id) && spells[spell_id].aoerange > 0;
|
||||
}
|
||||
|
||||
bool IsPBAENukeSpell(uint16 spell_id)
|
||||
{
|
||||
return IsValidSpell(spell_id) && IsPureNukeSpell(spell_id) && spells[spell_id].aoerange > 0 && spells[spell_id].targettype == ST_AECaster;
|
||||
}
|
||||
|
||||
bool IsAERainNukeSpell(uint16 spell_id)
|
||||
{
|
||||
return IsValidSpell(spell_id) && IsPureNukeSpell(spell_id)
|
||||
&& spells[spell_id].aoerange > 0 && spells[spell_id].AEDuration > 1000;
|
||||
}
|
||||
|
||||
bool IsPartialCapableSpell(uint16 spell_id)
|
||||
{
|
||||
if(IsPureNukeSpell(spell_id) ||
|
||||
|
||||
@@ -736,6 +736,9 @@ bool IsImprovedHealingSpell(uint16 spell_id);
|
||||
bool IsImprovedDamageSpell(uint16 spell_id);
|
||||
bool IsAEDurationSpell(uint16 spell_id);
|
||||
bool IsPureNukeSpell(uint16 spell_id);
|
||||
bool IsAENukeSpell(uint16 spell_id);
|
||||
bool IsPBAENukeSpell(uint16 spell_id);
|
||||
bool IsAERainNukeSpell(uint16 spell_id);
|
||||
bool IsPartialCapableSpell(uint16 spell_id);
|
||||
bool IsResistableSpell(uint16 spell_id);
|
||||
bool IsGroupSpell(uint16 spell_id);
|
||||
|
||||
Reference in New Issue
Block a user