Ir para conteúdo

Posts Recomendados

  • 3 weeks later...
  • 1 month later...

creature.cpp:

void Creature::addDamagePoints(Creature* attacker, int32_t damagePoints)
    {
     uint32_t attackerId = 0;
     if(attacker)
     {
      if(Creature* master = attacker->getMaster())
       attacker = master;
      attackerId = attacker->getID();
     }
     if(attacker->getPlayer())
     {
      CountMap::iterator it = damageMap.find(attackerId);
      if(it != damageMap.end())
      {
       it->second.ticks = OTSYS_TIME();
       if(damagePoints > 0)
        it->second.total += damagePoints;
      }
      else
       damageMap[attackerId] = CountBlock_t(damagePoints);
     }
     if(damagePoints > 0)
      lastHitCreature = attackerId;
    }
Link para o comentário
https://xtibia.com/forum/topic/233369-summon-n%C3%A3o-ganharroubar-exp/#findComment-1656270
Compartilhar em outros sites

  • 2 weeks later...
  • 1 month later...
Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...