Cave spider now poisons its victim, added IsPawn function to Entity
This commit is contained in:
@@ -77,7 +77,7 @@ bool cSplashPotionEntity::cSplashPotionCallback::Item(cEntity * a_Entity)
|
||||
|
||||
m_EntityEffect.SetDistanceModifier(reduction);
|
||||
|
||||
if (a_Entity->IsMob() || a_Entity->IsPlayer())
|
||||
if (a_Entity->IsPawn())
|
||||
{
|
||||
((cPawn *) a_Entity)->AddEntityEffect(m_EntityEffectType, m_EntityEffect);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user