Jump to content

Elixir of water walking - warriors are unable to use. " invalid target "


Recommended Posts

The spell fails at Spell::CheckCast() this way:

    if (expectedTarget->GetTypeId() == TYPEID_PLAYER)
       Player const* player = static_cast<Player const*>(expectedTarget);
       // Player is not allowed to cast water walk on shapeshifted/mounted player 
       if (player->GetShapeshiftForm() != FORM_NONE || player->IsMounted())
           { return SPELL_FAILED_BAD_TARGETS; }

since warrior stances are considered as shapeshifts (FORM_BATTLESTANCE etc.) The fix depends on the desired behaviour:

  • may the spell be cast on a warrior in a stance? is it possible to drop the stance at all?
  • must the aura be dropped if warrior switches from no-stance to a stance?
  • the same questions on the druid, priest (shadowform), and rogue (stealth)

The simplest way to fix it specifiacally for the warrior is to augment the shapeshift check by class check.

Link to comment
Share on other sites

  • 2 weeks later...

Hey, Olion.

Sorry for the beyond late reply! I forgot I even asked this question. 

You are far wiser than myself, I am a beginner and currently have zero idea of how to do what you recommended. Sorry for sounding dumb but how would I go about augmenting the shapeshift check by class check?


Many many thanks!



Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use