- do not show burn particles on attack boost if the boost is not decreasing the hp

This commit is contained in:
Mark Vejvoda 2012-12-29 01:01:14 +00:00
parent a6d985a488
commit 3997bafa2f
1 changed files with 7 additions and 2 deletions

View File

@ -2193,7 +2193,10 @@ bool Unit::applyAttackBoost(const AttackBoost *boost, const Unit *source) {
if(wasAlive == true) {
//startDamageParticles
startDamageParticles();
if(originalHp > hp) {
startDamageParticles();
}
//stop DamageParticles on death
if(hp <= 0) {
@ -2270,7 +2273,9 @@ void Unit::deapplyAttackBoost(const AttackBoost *boost, const Unit *source) {
//printf("DE-APPLYING ATTACK BOOST wasalive = true to unit [%s - %d] from unit [%s - %d]\n",this->getType()->getName().c_str(),this->getId(),source->getType()->getName().c_str(),source->getId());
//startDamageParticles
startDamageParticles();
if(originalHp > hp) {
startDamageParticles();
}
//stop DamageParticles on death
if(hp <= 0) {