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