mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-25 19:07:16 +00:00
AA effects and focus should work
Still need to verify all effects and implement currently unhandled
This commit is contained in:
1 parent
65ac9683a3
commit
ed11ee8bea
10 files changed
+1391
-1417
No files matched your search
+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