Rin'ji will now appear to be male and also can not be attacked by alliance why in cage

closes #408
This commit is contained in:
talamortis
2017-06-30 16:15:53 +01:00
parent 1b979e10a3
commit 8c624cc2f1
2 changed files with 5 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
INSERT INTO version_db_world (`sql_rev`) VALUES ('1498835613715251400');
UPDATE `creature_template` SET `modelid1` = '6485' WHERE `entry` = '7780';

View File

@@ -170,6 +170,7 @@ public:
{
_IsByOutrunner = false;
spawnId = 0;
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_DISABLE_MOVE);
}
void Reset()
@@ -228,6 +229,7 @@ public:
void sQuestAccept(Player* player, Quest const* quest)
{
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_DISABLE_MOVE);
if (quest->GetQuestId() == QUEST_RINJI_TRAPPED)
{
if (GameObject* go = me->FindNearestGameObject(GO_RINJI_CAGE, INTERACTION_DISTANCE))