mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Add support for innate self targeted spells
Currently this just includes checking SpellType_InCombatBuffs
This commit is contained in:
parent
653824ae9e
commit
bce92c5e02
@ -2032,6 +2032,8 @@ bool NPC::AI_EngagedCastCheck() {
|
|||||||
|
|
||||||
// first try innate (spam) spells
|
// first try innate (spam) spells
|
||||||
if(!AICastSpell(GetTarget(), 0, SpellType_Nuke | SpellType_Lifetap | SpellType_DOT | SpellType_Dispel | SpellType_Mez | SpellType_Slow | SpellType_Debuff | SpellType_Charm | SpellType_Root, true)) {
|
if(!AICastSpell(GetTarget(), 0, SpellType_Nuke | SpellType_Lifetap | SpellType_DOT | SpellType_Dispel | SpellType_Mez | SpellType_Slow | SpellType_Debuff | SpellType_Charm | SpellType_Root, true)) {
|
||||||
|
// try innate (spam) self targeted spells
|
||||||
|
if (!AICastSpell(this, 0, SpellType_InCombatBuff, true)) {
|
||||||
// try casting a heal or gate
|
// try casting a heal or gate
|
||||||
if (!AICastSpell(this, AISpellVar.engaged_beneficial_self_chance, SpellType_Heal | SpellType_Escape | SpellType_InCombatBuff)) {
|
if (!AICastSpell(this, AISpellVar.engaged_beneficial_self_chance, SpellType_Heal | SpellType_Escape | SpellType_InCombatBuff)) {
|
||||||
// try casting a heal on nearby
|
// try casting a heal on nearby
|
||||||
@ -2044,6 +2046,7 @@ bool NPC::AI_EngagedCastCheck() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return(true);
|
return(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user