diff --git a/server/gameserver/battledatacontext.cc b/server/gameserver/battledatacontext.cc index c0f178cb..287eb660 100644 --- a/server/gameserver/battledatacontext.cc +++ b/server/gameserver/battledatacontext.cc @@ -11,6 +11,7 @@ #include "bullet.h" #include "app.h" #include "room.h" +#include "explosion.h" #include "attrhelper.h" @@ -548,7 +549,7 @@ float BattleDataContext::CalcDmg(Obstacle* target, IBullet* bullet) float BattleDataContext::CalcDmg(Explosion* e) { - float finaly_dmg = (1 - GetDef() / 1000) / 2 * 100; + float finaly_dmg = e->GetDmg(); #ifdef DEBUG if (owner_.Get()->IsPlayer()) { std::string data = a8::Format