Fixed my silly mistake, thx Machiavelli
This commit is contained in:
@@ -16198,7 +16198,7 @@ void Unit::KnockbackFrom(float x, float y, float speedXY, float speedZ)
|
|||||||
Player *player = NULL;
|
Player *player = NULL;
|
||||||
if (GetTypeId() == TYPEID_PLAYER)
|
if (GetTypeId() == TYPEID_PLAYER)
|
||||||
player = (Player*)this;
|
player = (Player*)this;
|
||||||
else
|
else if (GetCharmer())
|
||||||
{
|
{
|
||||||
player = GetCharmer()->ToPlayer();
|
player = GetCharmer()->ToPlayer();
|
||||||
if (player && player->m_mover != this)
|
if (player && player->m_mover != this)
|
||||||
|
|||||||
Reference in New Issue
Block a user