File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1775,10 +1775,6 @@ bool ConditionDamage::getNextDamage(int32_t &damage) {
17751775}
17761776
17771777bool ConditionDamage::doDamage (const std::shared_ptr<Creature> &creature, int32_t healthChange) const {
1778- if (owner == 0 ) {
1779- return false ;
1780- }
1781-
17821778 const auto &attacker = g_game ().getPlayerByGUID (owner) ? g_game ().getPlayerByGUID (owner)->getCreature () : g_game ().getCreatureByID (owner);
17831779 bool isPlayer = attacker && attacker->getPlayer ();
17841780 if (creature->isSuppress (getType (), isPlayer)) {
@@ -1817,6 +1813,7 @@ void ConditionDamage::endCondition(std::shared_ptr<Creature>) {
18171813}
18181814
18191815void ConditionDamage::addCondition (std::shared_ptr<Creature> creature, const std::shared_ptr<Condition> addCondition) {
1816+ g_logger ().warn (" ConditionDamage::addCondition" );
18201817 if (addCondition->getType () != conditionType) {
18211818 return ;
18221819 }
You can’t perform that action at this time.
0 commit comments