• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Bash / Hammer of Bash

Level 2
Joined
Apr 17, 2023
Messages
7
Hello <3

Usually, in my map, a ranged hero having hammer of bash (The item), cannot bash units with spell immunity / magic immune. In this custom game, the intended usage of the hammer of bash is meant to work only for melee heroes against the spell immune targets, however, ever since the new Wc3 patch, hammer of bash (the item) appears to be working for ranged units against the immune targets, i suppose this is because they changed something in regards to the functionality of 'bash' in the newest update. Any idea how to fix that in my case? (Making it not work against magic immune targets if a ranged hero equips the item)?

Thank you
 
Yes, the latest update changed how bash works. Now Mountain King can bash when using an orb and attacking flying units, according to the patch notes.

I tested here the Item version of Bash (Special > Items > Bash (item)) is working against magic immune as well.
It seems all bash versions work on Magic Immune units.

You'll need to trigger it.
 
If you're using the newest version of world editor, the simplest way is to do something like this
  • Melee Hero Bash
    • Events
      • Unit - A unit About to take damage
    • Conditions
      • (Damage From Normal Attack) Equal to True
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Damage source)) Equal to Paladin
          • (Unit-type of (Damage source)) Equal to Mountain King
          • (Unit-type of (Damage source)) Equal to Blademaster
          • -------- Add all your melee heroes here --------
      • ((Damage source) has an item of type Bash Hammer) Equal to True
    • Actions
      • Set VariableSet RandomNumber = (Random integer number between 1 and 100)
      • Set VariableSet TempPoint = (Position of (Damage source))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • -------- Put the % you want bash to trigger here --------
          • RandomNumber Less than or equal to 20
        • Then - Actions
          • -------- I like to make my dummy unit face the direction of the target to minimize turning time --------
          • Unit - Create 1 Dummy Unit for (Owner of (Damage source)) at TempPoint facing (Facing of (Damage source)) degrees
          • -------- Create a storm bolt, hurl boulder or fire bolt spell with the extra damage you want bash to deal, the stun time you want, and with a hero requirement level of 6 to circumvent spell immunity. Don't forget to change mana to 0 or give your dummy unit enough mana to cast it. Also make the cast range 99999 to be sure to hit the target without the dummy unit moving --------
          • Unit - Add Hurl Boulder (Bash Dummy) to (Last created unit)
          • Unit - Order (Last created unit) to Neutral - Hurl Boulder (Damage Target)
          • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
        • Else - Actions
          • Do nothing
      • -------- Don't forget the point leak --------
      • Custom script: call RemoveLocation (udg_TempPoint)
Someone more experienced can give you a better trigger. But that's how I would do it.

PS, didn't test the trigger, might need tweaking to make it work properly.
 
Back
Top