diff --git a/include/RE/A/Actor.h b/include/RE/A/Actor.h index 12fb97a30..9dd068653 100644 --- a/include/RE/A/Actor.h +++ b/include/RE/A/Actor.h @@ -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; diff --git a/src/RE/A/Actor.cpp b/src/RE/A/Actor.cpp index 54db0c028..ba971d2a9 100644 --- a/src/RE/A/Actor.cpp +++ b/src/RE/A/Actor.cpp @@ -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{ RELOCATION_ID(37639, 38592) }; + return func(this); + } + bool Actor::IsProtected() const { return boolFlags.all(BOOL_FLAGS::kProtected);