blackmetal
Exalted Member
Hello guys, i wonder those code has problem or not but everytime it try to remove aura from pet, Server crash :megusta:
Thanks :determination: :determination: :determination:
Code:
if (GetTypeId() == TYPEID_UNIT && damage > 0 && HasAura(53257))
{
Player* player = this->ToPlayer();
Pet* pet = player->GetPet();
if (Aura* aura = GetAura(53257))
{
aura->DropCharge();
if (GetOwner())
{
if (Aura* cobra = GetOwner()->GetAura(53257)){
cobra->DropCharge();
pet->RemoveAura(53257);
}
}
}
}
Thanks :determination: :determination: :determination:
Last edited: