mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 19:51:29 +00:00
[AI] Spell Type (1024) InCombatBuff were spam casting (#2030)
This commit is contained in:
parent
751db6fffb
commit
afc32afb02
@ -195,10 +195,11 @@ bool NPC::AICastSpell(Mob* tar, uint8 iChance, uint32 iSpellTypes, bool bInnates
|
||||
}
|
||||
|
||||
case SpellType_InCombatBuff: {
|
||||
if(bInnates || zone->random.Roll(50))
|
||||
{
|
||||
AIDoSpellCast(i, tar, mana_cost);
|
||||
return true;
|
||||
if(bInnates || zone->random.Roll(50)) {
|
||||
if (tar->CanBuffStack(AIspells[i].spellid, GetLevel(), true) >= 0) {
|
||||
AIDoSpellCast(i, tar, mana_cost);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user