Closed xTeJk closed 4 years ago
GangPlankE you can use GameScript to addParticle(if you know what to do),and about give buffs to ally,you can follow "Taric R" to make AOE buff.
GangPlank W should be scale by AP, not AD. We don't have "RestoreHealth" function, please fix it
About R spell, you can use for()
to make codes shorter.
Gangplank W you can use
owner.Stats.CurrentHealth += healing number;
to restore health.
GangplabkE BuffHudVisual and Particle should be in GameScript
, else it will be weird, like particles didn't remove on other people.
in GangplankW, that Game script have "removeAfter" things, you could add that and remove owner.RemoveGameScript();
function.
GangplabkE BuffHudVisual and Particle should be in
GameScript
, else it will be weird, like particles didn't remove on other people.
AddBuffHUDVisual should be defined as var and then removed by RemoveBuffHUDVisual(..); in timer?
But you use foreach()
, mean all units in the range.
But you coded as removeParticle on one's(not sure who is the one).
So coded in GameScript then it won't have confusion and it will be more readable.
Check the IGameScript
( not the buff one)construction is the current version, because you don't have "IChampion, ISpell,IAttackableUnit" type ( all without the "I" word)
CreateTimer should be vars number, not 0.5f (else it will happen at the same time)
if (unit is IChampion || unit is Minion || unit is Monster) Im not sure about this construction (shouldnt be IMinion and IMonster?)
About E foreach particle removing also.
I've checked GameScript but still dont understand how removeAfter; is working and what i should paste in code
CreateTimer should be vars number, not 0.5f (else it will happen at the same time)
So it should be CreateTimer(0.5, () => instead of CreateTimer(0.5f, () => am i right?
Gangplank visualHud and Particles should be in "Buffs/GangplankE.cs", so after time, it will disappear on units(remember foreach() function, you can use that)
@xTeJk No, like this example.
for(float p = 0.0f; p<=12; p += 0.5f)
{
CreateTimer(p,()=>
{
............
});
}
And test in LeagueSandbox make sure it all works or not, most coding problems were solved.
And please remove GangplankR because the spells construction not that perfect(especially CreateTimer() function,the developers don't recommended to use that)
And please remove GangplankR because the spells construction not that perfect(especially CreateTimer() function,the developers don't recommended to use that)
Sure.
And test in LeagueSandbox make sure it all works or not, most coding problems were solved.
Everything is working fine.
GangplankE have CreateTimer
please remove it and if you want removeParticle, code them in the BuffGameScript(Buffs/GangplankE.cs)
About GangplankW, that code won't over Maximum health,tested before.
You didn't removeParticle(if in game it still exist) Try make "private Particle" to show particles and also can be remove.
And in buffGameScript, you don't have "owner", try get "owner" from spell file, or just use unit(if it won't make game crash)
I do not know if these conditions for checking health points are correct, so please correct the code.
And in buffGameScript, you don't have "owner", try get "owner" from spell file, or just use unit(if it won't make game crash)
public void OnActivate(IObjAIBase unit, ISpell ownerSpell)
ownerSpell isnt a owner definition in buffgamescript?
ownerSpell is Spell class So you need the "IChampion" class to fit "owner"
Health point codes looks fine,but the middle one should be remove(because it didn't do the things)
All committers have signed the CLA.