Browse Source

Remove spurious "I can't cast that here"

pull/5058/head
Vladimir Olteanu 4 years ago committed by Anders Jenbo
parent
commit
dbf7f0b4aa
  1. 11
      Source/player.cpp

11
Source/player.cpp

@ -3567,11 +3567,6 @@ void CheckPlrSpell(bool isShiftHeld, spell_id spellID, spell_type spellType)
return;
}
if (leveltype == DTYPE_TOWN && !spelldata[spellID].sTownSpell) {
myPlayer.Say(HeroSpeech::ICantCastThatHere);
return;
}
if (ControlMode == ControlTypes::KeyboardAndMouse) {
if (pcurs != CURSOR_HAND)
return;
@ -3591,6 +3586,12 @@ void CheckPlrSpell(bool isShiftHeld, spell_id spellID, spell_type spellType)
return;
}
}
if (leveltype == DTYPE_TOWN && !spelldata[spellID].sTownSpell) {
myPlayer.Say(HeroSpeech::ICantCastThatHere);
return;
}
SpellCheckResult spellcheck = SpellCheckResult::Success;
switch (spellType) {
case RSPLTYPE_SKILL:

Loading…
Cancel
Save