From d712e754c6d2ff28540ff454a86ce41c6e1f5253 Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Wed, 30 Aug 2017 15:16:53 +0300 Subject: removed agressiveMonster --- src/Mobs/Behaviors/BehaviorAttackerMelee.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/Mobs/Behaviors/BehaviorAttackerMelee.cpp') diff --git a/src/Mobs/Behaviors/BehaviorAttackerMelee.cpp b/src/Mobs/Behaviors/BehaviorAttackerMelee.cpp index 42e88c637..337d8d216 100644 --- a/src/Mobs/Behaviors/BehaviorAttackerMelee.cpp +++ b/src/Mobs/Behaviors/BehaviorAttackerMelee.cpp @@ -3,9 +3,11 @@ #include "BehaviorAttackerMelee.h" #include "../Monster.h" #include "../../Entities/Pawn.h" +#include "../../BlockID.h" -bool cBehaviorAttackerMelee::StrikeTarget(std::chrono::milliseconds a_Dt, cChunk & a_Chunk, int a_StrikeTickCnt) +bool cBehaviorAttackerMelee::StrikeTarget(int a_StrikeTickCnt) { - GetTarget()->TakeDamage(dtMobAttack, this, m_AttackDamage, 0); - return true; + UNUSED(a_StrikeTickCnt); + GetTarget()->TakeDamage(dtMobAttack, m_Parent, m_AttackDamage, 0); + return true; // Finish the strike. It only takes 1 tick. } -- cgit v1.2.3