-
Potion Toss
-
Wydarzenia
- Jednostka - A unit Rozpoczyna działanie zdolności
-
Warunki
- (Ability being cast) RĂłwna siÄ™ Toss Me the Bottle
-
Akcje
- -------- ------------------------------------------------------------------------------------------------- --------
- -------- Getting the Spell constants --------
- -------- ------------------------------------------------------------------------------------------------- --------
- Set PT_Caster = (Triggering unit)
- Set PT_Target = (Target unit of ability being cast)
- Set PT_Location = (Position of PT_Target)
- Set PT_Owner = (Owner of PT_Caster)
- Set PT_ability_level = (Level of (Ability being cast) for PT_Caster)
- -------- ------------------------------------------------------------------------------------------------- --------
- -------- Setting the Spell values --------
- -------- ------------------------------------------------------------------------------------------------- --------
- Set PT_STR = (Siła of PT_Caster (Nanieś bonuses))
- Set PT_DMG_MP = (1.35 x (Real((Level of Toss Me the Bottle for PT_Caster))))
- Set PT_DMG = ((Real(PT_STR)) x PT_DMG_MP)
- Set PT_Dummy = Toss Me the Bottle(dummy)
- -------- ------------------------------------------------------------------------------------------------- --------
- -------- Damaging the Target --------
- -------- ------------------------------------------------------------------------------------------------- --------
- Jednostka - Cause PT_Caster to damage PT_Target, dealing PT_DMG damage of attack type Zaklęcia and damage type Nieznany
- -------- ------------------------------------------------------------------------------------------------- --------
- -------- Setting the Dummy, ordering it to cast a spell --------
- -------- ------------------------------------------------------------------------------------------------- --------
- Jednostka - Create 1 Dummy for PT_Owner at PT_Location facing Domyślna orientacja budynku degrees
- Jednostka - Add a 1.50 second OgĂłlny expiration timer to (Last created unit)
- Jednostka - Add PT_Dummy to (Last created unit)
- Jednostka - Set level of PT_Dummy for (Last created unit) to PT_ability_level
- -------- ------------------------------------------------------------------------------------------------- --------
- -------- Creating and setting floating text --------
- -------- ------------------------------------------------------------------------------------------------- --------
- Tekst - Create floating text that reads ((String((Integer(PT_DMG)))) + !) above PT_Target with Z offset 0.00, using font size 10.00, color (0.00%, 40.00%, 100.00%), and 0.00% transparency
- Tekst - Change (Last created floating text): Wyłącz permanence
- Tekst - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
- Tekst - Change the fading age of (Last created floating text) to 3.00 seconds
- Tekst - Change the lifespan of (Last created floating text) to 5.00 seconds
- -------- ------------------------------------------------------------------------------------------------- --------
- -------- Clearing Leaks --------
- -------- ------------------------------------------------------------------------------------------------- --------
- Custom script: call RemoveLocation(udg_PT_Location)
-
Wydarzenia