mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 07:38:36 +00:00
AA effects and focus should work
Still need to verify all effects and implement currently unhandled
This commit is contained in:
+5
-3
@@ -3510,9 +3510,11 @@ void Mob::TriggerOnCast(uint32 focus_spell, uint32 spell_id, bool aa_trigger)
|
||||
|
||||
uint32 trigger_spell_id = 0;
|
||||
|
||||
if (aa_trigger && IsClient()){
|
||||
//focus_spell = aaid
|
||||
trigger_spell_id = CastToClient()->CalcAAFocus(focusTriggerOnCast, focus_spell, spell_id);
|
||||
if (aa_trigger && IsClient()) {
|
||||
// focus_spell = aaid
|
||||
auto rank = zone->GetAlternateAdvancementRank(focus_spell);
|
||||
if (rank)
|
||||
trigger_spell_id = CastToClient()->CalcAAFocus(focusTriggerOnCast, *rank, spell_id);
|
||||
|
||||
if(IsValidSpell(trigger_spell_id) && GetTarget())
|
||||
SpellFinished(trigger_spell_id, GetTarget(), 10, 0, -1, spells[trigger_spell_id].ResistDiff);
|
||||
|
||||
Reference in New Issue
Block a user