mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-26 12:43:52 +00:00
Debuff/Slow on random mob on hatelist
This commit is contained in:
parent
837c02ffd6
commit
60c280a521
@ -182,7 +182,20 @@ bool NPC::AICastSpell(Mob* tar, uint8 iChance, uint16 iSpellTypes) {
|
||||
break;
|
||||
}
|
||||
case SpellType_Slow:
|
||||
case SpellType_Debuff:
|
||||
case SpellType_Debuff: {
|
||||
Mob * debuffee = GetHateRandom();
|
||||
if (debuffee && manaR >= 10 && MakeRandomInt(0, 99 < 70) &&
|
||||
debuffee->CanBuffStack(AIspells[i].spellid, GetLevel(), true) >= 0) {
|
||||
if (!checked_los) {
|
||||
if (!CheckLosFN(debuffee))
|
||||
return false;
|
||||
checked_los = true;
|
||||
}
|
||||
AIDoSpellCast(i, debuffee, mana_cost);
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SpellType_Nuke: {
|
||||
if (
|
||||
manaR >= 10 && MakeRandomInt(0, 99) < 70
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user