fix(Scripts/DB/Creature): Set PvP flag for some creatures (#4270)

This commit is contained in:
lineagedr
2021-01-14 20:15:55 +02:00
committed by GitHub
parent 286f6cddb1
commit 943c1e7ae7
3 changed files with 5 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1610598175630537700');
UPDATE `creature_template` SET `faction` = '1639', `unit_flags` = '4096', `flags_extra` = '0' WHERE `entry` = '17551';

View File

@@ -70,7 +70,7 @@ public:
DoCast(me, SPELL_IRRIDATION, true);
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PVP_ATTACKABLE);
me->SetPvP(true);
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IN_COMBAT);
me->SetHealth(me->CountPctFromMaxHealth(10));
me->SetStandState(UNIT_STAND_STATE_SLEEP);

View File

@@ -1297,7 +1297,7 @@ public:
RunAwayTimer = 5000;
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PVP_ATTACKABLE);
me->SetPvP(true);
me->SetStandState(UNIT_STAND_STATE_KNEEL);
// expect database to have RegenHealth=0
me->SetHealth(me->CountPctFromMaxHealth(70));