1
0

villagers turn into witches when struck by lightning

This commit is contained in:
p-mcgowan 2014-11-21 23:20:44 -08:00
parent f3e9fa74d2
commit ac2e3ede1d

View File

@ -37,6 +37,11 @@ bool cVillager::DoTakeDamage(TakeDamageInfo & a_TDI)
m_World->BroadcastEntityStatus(*this, esVillagerAngry);
}
}
if (a_TDI.DamageType == dtLightning)
{
m_World->SpawnMob((int) GetPosX(), (int) GetPosY(), (int) GetPosZ(), mtWitch);
super::Destroy(this);
}
return true;
}