mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[9274] Implement SPELL_EFFECT_SUMMON_ALL_TOTEMS
This implement work spells 66842, 66843, 66844. Patch originall writed by Arthorius, with additional fixes from darkstalker and hack removes from me.
This commit is contained in:
parent
9aedd3a864
commit
904995c024
7 changed files with 36 additions and 5 deletions
|
|
@ -5728,6 +5728,15 @@ void Player::removeActionButton(uint8 button)
|
|||
sLog.outDetail( "Action Button '%u' Removed from Player '%u'", button, GetGUIDLow() );
|
||||
}
|
||||
|
||||
ActionButton const* Player::GetActionButton(uint8 button)
|
||||
{
|
||||
ActionButtonList::iterator buttonItr = m_actionButtons.find(button);
|
||||
if (buttonItr==m_actionButtons.end() || buttonItr->second.uState == ACTIONBUTTON_DELETED)
|
||||
return NULL;
|
||||
|
||||
return &buttonItr->second;
|
||||
}
|
||||
|
||||
bool Player::SetPosition(float x, float y, float z, float orientation, bool teleport)
|
||||
{
|
||||
// prevent crash when a bad coord is sent by the client
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue