Skip to content

Commit

Permalink
Merge pull request #16 from cooler-SAI/master
Browse files Browse the repository at this point in the history
Core/SoO: Add Malkorok script
  • Loading branch information
mygithome002 authored Feb 13, 2017
2 parents 13b4392 + 61c480d commit a51d31e
Show file tree
Hide file tree
Showing 4 changed files with 601 additions and 122 deletions.
11 changes: 11 additions & 0 deletions src/server/game/Entities/Unit/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19436,6 +19436,17 @@ void Unit::SetControlled(bool apply, UnitState state)
}
}

void Unit::DisableRotate(bool apply)
{
if (GetTypeId() != TYPEID_UNIT)
return;

if (apply)
SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PLAYER_CONTROLLED);
else if (!HasUnitState(UNIT_STATE_POSSESSED))
RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PLAYER_CONTROLLED);
}

void Unit::SendLossOfControl(AuraApplication const* aurApp, Mechanics mechanic, SpellEffIndex index)
{
if (!ToPlayer())
Expand Down
1 change: 1 addition & 0 deletions src/server/game/Entities/Unit/Unit.h
Original file line number Diff line number Diff line change
Expand Up @@ -2189,6 +2189,7 @@ class Unit : public WorldObject
float GetPositionZMinusOffset() const;

void SetControlled(bool apply, UnitState state);
void DisableRotate(bool apply);
void SendLossOfControl(AuraApplication const* aurApp, Mechanics mechanic, SpellEffIndex index);

void AddComboPointHolder(uint32 lowguid) { m_ComboPointHolders.insert(lowguid); }
Expand Down
Loading

0 comments on commit a51d31e

Please sign in to comment.