- do not show burn particles on attack boost if the boost is not decreasing the hp
This commit is contained in:
parent
a6d985a488
commit
3997bafa2f
|
@ -2193,7 +2193,10 @@ bool Unit::applyAttackBoost(const AttackBoost *boost, const Unit *source) {
|
||||||
|
|
||||||
if(wasAlive == true) {
|
if(wasAlive == true) {
|
||||||
//startDamageParticles
|
//startDamageParticles
|
||||||
startDamageParticles();
|
|
||||||
|
if(originalHp > hp) {
|
||||||
|
startDamageParticles();
|
||||||
|
}
|
||||||
|
|
||||||
//stop DamageParticles on death
|
//stop DamageParticles on death
|
||||||
if(hp <= 0) {
|
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());
|
//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
|
||||||
startDamageParticles();
|
if(originalHp > hp) {
|
||||||
|
startDamageParticles();
|
||||||
|
}
|
||||||
|
|
||||||
//stop DamageParticles on death
|
//stop DamageParticles on death
|
||||||
if(hp <= 0) {
|
if(hp <= 0) {
|
||||||
|
|
Loading…
Reference in New Issue