• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] [Spell Fix] [Camouflage] Logic Problem

Status
Not open for further replies.

callmephil

Respected Member
Hey there !

So i'm having a problem with my logic. the spell http://www.wowhead.com/spell=51753/camouflage#comments
i'm trying to fix this part : You and your pet blend into your surroundings, becoming untargetable by ranged attacks.
the problem is you can still attack the guy / target
So what i'm trying todo it's aborting the fact that player is casting a spell on the hunter when he got this aura
this is my how i handle it
Code:
		if (range_type == SPELL_RANGE_RANGED && !target->IsFriendlyTo(m_caster))
		{
			if (m_caster)
				if (target->HasAura(51755))
					m_caster; return SPELL_FAILED_VISION_OBSCURED;
}

it's working but atm the problem is : it's not doing it the good way
Hunter can't attack opponent & opponent can attack the hunter.
and i can't find a way to do the opposite.
any idea how i could do it ?
 
Status
Not open for further replies.
Top