1
0

Merge pull request #1610 from p-mcgowan/villagersIntoWitchOnLightning

Villagers into witch on lightning
This commit is contained in:
Mattes D 2014-11-22 18:39:17 +01:00
commit 075daf9beb

View File

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