diff --git a/tswow-core/Private/TSUnit.cpp b/tswow-core/Private/TSUnit.cpp index ba1add91..763d1991 100644 --- a/tswow-core/Private/TSUnit.cpp +++ b/tswow-core/Private/TSUnit.cpp @@ -2709,4 +2709,9 @@ TSPlayer TSUnit::GetControllingPlayer() { return TSPlayer(unit->GetControllingPlayer()); } + +TSNumber TSUnit::GetLastExtraAttackSpell() +{ + return unit->GetLastExtraAttackSpell(); +} /** @epoch-end */ \ No newline at end of file diff --git a/tswow-core/Public/TSUnit.h b/tswow-core/Public/TSUnit.h index e852c7be..bacadde1 100644 --- a/tswow-core/Public/TSUnit.h +++ b/tswow-core/Public/TSUnit.h @@ -254,6 +254,7 @@ class TC_GAME_API TSUnit : public TSWorldObject { // uint32 SpellDamageBonusTaken(Unit* caster, SpellInfo const* spellProto, uint32 pdamage, DamageEffectType damagetype); void AddThreatAllAssist(TSUnit victim, TSNumber threat, uint32 spell, bool ignoreModifiers); TSPlayer GetControllingPlayer(); + TSNumber GetLastExtraAttackSpell(); /** @epoch-end*/ private: TSLua::Array LGetControlled(); diff --git a/tswow-core/Public/global.d.ts b/tswow-core/Public/global.d.ts index fee2ec90..3c31b414 100644 --- a/tswow-core/Public/global.d.ts +++ b/tswow-core/Public/global.d.ts @@ -7618,6 +7618,7 @@ declare interface TSUnit extends TSWorldObject { MovePath(path_id: uint32, repeatable: boolean): void; AddThreatAllAssist(victim: TSUnit, threat: TSNumber, spell: uint32, ignoreModifiers: bool): void; GetControllingPlayer(): TSPlayer; + GetLastExtraAttackSpell(): uint32; /** @epoch-end */ }