Skip to content

Commit

Permalink
Add GetLastExtraSpell accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
kaytotes committed Dec 14, 2024
1 parent eb6a63a commit 07eef80
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tswow-core/Private/TSUnit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2709,4 +2709,9 @@ TSPlayer TSUnit::GetControllingPlayer()
{
return TSPlayer(unit->GetControllingPlayer());
}

TSNumber<uint32> TSUnit::GetLastExtraAttackSpell()
{
return unit->GetLastExtraAttackSpell();
}
/** @epoch-end */
1 change: 1 addition & 0 deletions tswow-core/Public/TSUnit.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<float> threat, uint32 spell, bool ignoreModifiers);
TSPlayer GetControllingPlayer();
TSNumber<uint32> GetLastExtraAttackSpell();
/** @epoch-end*/
private:
TSLua::Array<TSUnit> LGetControlled();
Expand Down
1 change: 1 addition & 0 deletions tswow-core/Public/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7618,6 +7618,7 @@ declare interface TSUnit extends TSWorldObject {
MovePath(path_id: uint32, repeatable: boolean): void;
AddThreatAllAssist(victim: TSUnit, threat: TSNumber<float>, spell: uint32, ignoreModifiers: bool): void;
GetControllingPlayer(): TSPlayer;
GetLastExtraAttackSpell(): uint32;
/** @epoch-end */
}

Expand Down

0 comments on commit 07eef80

Please sign in to comment.