TakeDamage now has the cThrownSnowballEntity instead of the creator's object.
parent
deafec874d
commit
ef3c5a97a4
|
@ -677,7 +677,7 @@ void cThrownSnowballEntity::OnHitEntity(cEntity & a_EntityHit, const Vector3d &
|
|||
TotalDamage = 1;
|
||||
}
|
||||
}
|
||||
a_EntityHit.TakeDamage(dtRangedAttack, m_Creator, TotalDamage, 1);
|
||||
a_EntityHit.TakeDamage(dtRangedAttack, this, TotalDamage, 1);
|
||||
|
||||
Destroy(true);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue