Skip to content

Commit

Permalink
Add Actor::IsPowerAttacking
Browse files Browse the repository at this point in the history
  • Loading branch information
powerof3 committed Oct 3, 2024
1 parent e7d2ac7 commit 7e812d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/RE/A/Actor.h
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ namespace RE
bool IsOnMount() const;
bool IsOverEncumbered() const;
bool IsPlayerTeammate() const;
bool IsPowerAttacking() const;
bool IsProtected() const;
bool IsRunning() const;
bool IsSneaking() const;
Expand Down
7 changes: 7 additions & 0 deletions src/RE/A/Actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,13 @@ namespace RE
return boolBits.all(BOOL_BITS::kPlayerTeammate);
}

bool Actor::IsPowerAttacking() const
{
using func_t = decltype(&Actor::IsPowerAttacking);
static REL::Relocation<func_t> func{ RELOCATION_ID(37639, 38592) };
return func(this);
}

bool Actor::IsProtected() const
{
return boolFlags.all(BOOL_FLAGS::kProtected);
Expand Down

0 comments on commit 7e812d7

Please sign in to comment.