Skip to content

H7EffectCommand

Class in MMH7Game · MMH7Game.H7EffectCommand · native

Object › H7Effect › H7EffectCommand

Using it from Lua
h7.find_all("H7EffectCommand")            -- live instances
h7.find_class("MMH7Game.H7EffectCommand")   -- the class
h7.hook("MMH7Game.H7EffectCommand.AddCommandToQueue", fn)

Properties

NameTypeNotes
mCommandQueueH7CommandQueueprotected
mDataH7CommandEffectprotected

Functions

NameDeclaration
AddCommandToQueueprotected function AddCommandToQueue(out H7CommandQueue queue, H7IEffectTargetable Target, H7FXObject fx)
Executeprotected event Execute(optional bool isSimulated = false)
GenerateCombatActionfunction H7CombatResult GenerateCombatAction(optional H7CombatResult baseCombatAction)
GetDatafunction H7CommandEffect GetData()
InitSpecificevent InitSpecific(H7CommandEffect Data, H7EffectContainer Source, optional bool registerEffect = true)
ShowInTooltipevent bool ShowInTooltip()
ValidateRecipientsprotected function ValidateRecipients(out array<H7IEffectTargetable> Targets)

Default values

mData=(mCommandTag=ECommandTag.ACTION_MELEE_ATTACK,mInsertHead=false,mAmount=1,mAbility=none,mCommandRecipient=EEffectTarget.TARGET_DEFAULT,mRecipientConditions=(NextUnitInQueue=false,UseUnitType=false,UOperation=EOperationBool.OP_TYPE_BOOL_EQUAL,UnitType=EUnitType.UNIT_HERO,UseUnitTypes=false,UT...

Inherited

FromMembers
H7EffectProperties: mCaster, mConditions, mEffectTags, mEffectTarget, mEventContainer, mFX, mGroup, mIsBeingExecuted, mRank, mRemovedDuringExecution, mSourceOfEffect, mTarget, mTargetLimit, mTargetOverwrite, mTempTargets, mTooltipBuffInstance, mTrigger
Functions: AddTag, AttackConditionCheck, AttackConditionCheckOnArchetype, CasterConditionCheck, CasterConditionCheckOnArchetype, CheckMagicSynergy, ClearCachedTargets, ClearTooltipContainerInstance, CompareRank, ConditionCheck, ConditionCheckOnArchetype, DebugFunction, DoOperationBool, EventListener, Execute, ExecuteSave, GenerateCombatAction, GetAbsValueAsString, GetAlignmentType, GetCachedTargets, GetChance, GetConditons, GetDefaultString, GetEventContainer, GetFX, GetGroup, GetHumanReadableMultiplier, GetHumanReadableMultiplierAbs, GetHumanReadableMultiplierAbsInt, GetHumanReadablePercent, GetHumanReadablePercentAbs, GetHumanReadablePercentAbsInt, GetHumanReadablePercentInt, GetHumanReadableStatMod, GetIconString, GetLocaNameForSpellOperation, GetLocaNameForTrigger, GetMaxCap, GetMaxString, GetMinCap, GetMinString, GetName, GetOperation, GetOperationString, GetProperty, GetRegistrator, GetRequiredRank, GetSource, GetTags, GetTagsPlusBaseTags, GetTargetEnum, GetTargets, GetTargetsByEffectTarget, GetTooltipLine, GetTooltipReplacement, GetTrigger, GetValidTargets, GetValue, GetValueAsString, HasTag, InitEffect, InstanciateFX, IsPreventedByImmunityOf, IsPreventedByImmunityOfOnArchetype, LocalizeFailSafe, RankCheck, RegisterTrigger, SetAreaAroundXTargets, SetEventContainer, SetFirstRows, SetUnitTargetOverwrite, ShowInTooltip, TargetConditionCheck, TargetConditionCheckOnArchetype, TriggerEffect, UnpackContainer, UnregisterTrigger
Object13 properties, 308 functions