-- Added Bot primary weapon proc (secondary and ranged already exist)

-- Added Bard Bot Instrumentation bonuses
-- Added checks to avoid AE Buff casting on enemy mobs
-- Fixed a few typos in 'Vah Shir'-related code
This commit is contained in:
Uleat
2013-05-09 20:57:02 -04:00
parent 7a93966158
commit c98c115cb6
5 changed files with 77 additions and 9 deletions
+13
View File
@@ -706,6 +706,12 @@ void EntityList::AESpell(Mob *caster, Mob *center, uint16 spell_id, bool affect_
if(!center->CheckLosFN(curmob))
continue;
}
else { // check to stop casting beneficial ae buffs (to wit: bard songs) on enemies...
if(caster->IsAttackAllowed(curmob, true))
continue;
if(caster->CheckAggro(curmob))
continue;
}
//if we get here... cast the spell.
if(IsTargetableAESpell(spell_id) && bad)
@@ -812,6 +818,13 @@ void EntityList::AEBardPulse(Mob *caster, Mob *center, uint16 spell_id, bool aff
if(!center->CheckLosFN(curmob))
continue;
}
else { // check to stop casting beneficial ae buffs (to wit: bard songs) on enemies...
if(caster->IsAttackAllowed(curmob, true))
continue;
if(caster->CheckAggro(curmob))
continue;
}
//if we get here... cast the spell.
curmob->BardPulse(spell_id, caster);
}