feat(Core/Unit): New helpers for UnitFlag and UnitFlag2 (#11227)
This commit is contained in:
parent
54c06eb72e
commit
856aed6fc6
243 changed files with 1205 additions and 1191 deletions
|
|
@ -1100,7 +1100,7 @@ class spell_item_draenic_pale_ale : public SpellScript
|
|||
|
||||
summon->SetOwnerGUID(GetCaster()->GetGUID());
|
||||
summon->SetFaction(GetCaster()->GetFaction());
|
||||
summon->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC | UNIT_FLAG_IMMUNE_TO_NPC);
|
||||
summon->SetUnitFlag(UNIT_FLAG_IMMUNE_TO_PC | UNIT_FLAG_IMMUNE_TO_NPC);
|
||||
summon->SetReactState(REACT_PASSIVE);
|
||||
summon->GetMotionMaster()->MoveFollow(GetCaster(), PET_FOLLOW_DIST, GetCaster()->GetAngle(summon), MOTION_SLOT_CONTROLLED);
|
||||
GetSpell()->ExecuteLogEffectSummonObject(effIndex, summon);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue