From 335c2092abfc8f71abdc4eb3ce64b94abeea3a1a Mon Sep 17 00:00:00 2001 From: talamortis Date: Sat, 23 Sep 2017 17:28:16 +0100 Subject: [PATCH] update --- src/premium.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/premium.cpp b/src/premium.cpp index eb724b0..060f27e 100644 --- a/src/premium.cpp +++ b/src/premium.cpp @@ -309,12 +309,18 @@ public: else { Creature* trainer = player->SummonCreature(HMAGE, player->GetPositionX(), player->GetPositionY(), player->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 10000); + trainer->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); + trainer->GetMotionMaster()->MoveFollow(player, PET_FOLLOW_DIST, player->GetFollowAngle()); + trainer->setFaction(player->getFaction()); } break; case CLASS_PALADIN: if (player->GetTeamId() == TEAM_ALLIANCE) { Creature* trainer = player->SummonCreature(APALADIN, player->GetPositionX(), player->GetPositionY(), player->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 10000); + trainer->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); + trainer->GetMotionMaster()->MoveFollow(player, PET_FOLLOW_DIST, player->GetFollowAngle()); + trainer->setFaction(player->getFaction()); } else {