mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Merge pull request #463 from dydzio0614/skel_transformer_fix
Fix bone/ghost dragon handling in skeleton transformer
This commit is contained in:
commit
84be667363
@ -3668,7 +3668,8 @@ bool CGameHandler::transformInUndead(const IMarket *market, const CGHeroInstance
|
||||
//resulting creature - bone dragons or skeletons
|
||||
CreatureID resCreature = CreatureID::SKELETON;
|
||||
|
||||
if (s.hasBonusOfType(Bonus::DRAGON_NATURE)
|
||||
if ((s.hasBonusOfType(Bonus::DRAGON_NATURE)
|
||||
&& !(s.hasBonusOfType(Bonus::UNDEAD)))
|
||||
|| (s.getCreatureID() == CreatureID::HYDRA)
|
||||
|| (s.getCreatureID() == CreatureID::CHAOS_HYDRA))
|
||||
resCreature = CreatureID::BONE_DRAGON;
|
||||
|
Loading…
Reference in New Issue
Block a user