diff options
Diffstat (limited to 'src/Mobs/Behaviors/BehaviorAttackerMelee.cpp')
-rw-r--r-- | src/Mobs/Behaviors/BehaviorAttackerMelee.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Mobs/Behaviors/BehaviorAttackerMelee.cpp b/src/Mobs/Behaviors/BehaviorAttackerMelee.cpp new file mode 100644 index 000000000..42e88c637 --- /dev/null +++ b/src/Mobs/Behaviors/BehaviorAttackerMelee.cpp @@ -0,0 +1,11 @@ +#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules + +#include "BehaviorAttackerMelee.h" +#include "../Monster.h" +#include "../../Entities/Pawn.h" + +bool cBehaviorAttackerMelee::StrikeTarget(std::chrono::milliseconds a_Dt, cChunk & a_Chunk, int a_StrikeTickCnt) +{ + GetTarget()->TakeDamage(dtMobAttack, this, m_AttackDamage, 0); + return true; +} |