Scripts/LCT: added anti-cheat check to prevent Siamat being fightable if previous bosses have not been killed before.

This commit is contained in:
Ovalord
2017-12-18 23:14:52 +01:00
parent b40c40cf59
commit 4c26b161bf

View File

@@ -129,6 +129,11 @@ class instance_lost_city_of_the_tolvir : public InstanceMapScript
instance->SummonCreatureGroup(SUMMON_GROUP_WIND_TUNNEL);
}
break;
case DATA_SIAMAT: // anti-cheat protection
if (state == IN_PROGRESS && !CheckSiamatsPlatform())
if (Creature* siamat = GetCreature(DATA_SIAMAT))
siamat->AI()->EnterEvadeMode();
break;
default:
break;
}