Rheiko
Spell Reviewer
- Joined
- Aug 27, 2013
- Messages
- 4,264
Discuss random things here
guys, i did it!!
my very first jass spell! (well actually it is a simple spell. cast a spell => special effect => deals damage = > done)
check out the code :3
guys, i did it!!

my very first jass spell! (well actually it is a simple spell. cast a spell => special effect => deals damage = > done)
check out the code :3
JASS:
function Trig_War_Stomp_Conditions takes nothing returns boolean
if (GetSpellAbilityId() == 'AHca')
endfunction
function Trig_War_Stomp_Actions takes nothing returns nothing
local unit a = GetTriggerUnit()
local unit b = GetSpellTargetUnit()
local string c = "Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl"
local real x = GetUnitX(b)
local real y = GetUnitY(b)
call DestroyEffect(AddSpecialEffect(c, x, y))
call UnitDamageTarget(a, b, 30, true, false, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_COLD, null)
set a = null
set b = null
endfunction
//===========================================================================
function InitTrig_War_Stomp takes nothing returns nothing
set gg_trg_War_Stomp = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_War_Stomp, EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddAction(gg_trg_War_Stomp, function Trig_War_Stomp_Actions)
call TriggerAddCondition(gg_trg_War_Stomp, function Trig_War_Stomp_Conditions)
endfunction


